<?php 
include_once('king_head.php');
$qry="Select * from reseller where site_id=$rid";
$res=mysql_query($qry);
$row=mysql_fetch_array($res);
?>
<table width="100%" border="0">
  <tr>
    <td height="46" colspan="3"><h2 align="center">Reseller Information </h2></td>
    </tr>
  <tr>
    <td width="23%">User ID </td>
    <td colspan="2"><?php echo $row['uid'];?></td>
  </tr>
  <tr>
    <td>Password Reset</td>
    <td width="35%"><?php echo $row['pwd'];?></td>
    <td width="42%"><input type="button" name="Button" value="Reset Password" onclick="javascript: window.open('resetpass.php?site_id=<?php echo $rid;?>');" /></td>
  </tr>
  <tr>
    <td>Title</td>
    <td colspan="2"><?php echo $row['title'];?></td>
  </tr>
  <tr>
    <td> First Name</td>
    <td colspan="2"><?php echo $row['fname'];?></td>
  </tr>
  <tr>
    <td> Middle Name</td>
    <td colspan="2"><?php echo $row['mname'];?></td>
  </tr>
  <tr>
    <td>Last Name</td>
    <td colspan="2"><?php echo $row['lname'];?></td>
  </tr>
  <tr>
    <td> Email Address</td>
    <td colspan="2"><?php echo $row['email'];?></td>
  </tr>
  <tr>
    <td>DOB</td>
    <td colspan="2"><?php echo $row['DOB'];?></td>
  </tr>
  <tr>
    <td>Phones</td>
    <td colspan="2"><?php echo"Ph:".$row['phone_no']." B:".$row['business_no']." M:".$row['mobile_no'];?></td>
  </tr>
  <tr>
    <td>Business Name</td>
    <td colspan="2"><?php echo $row['business_name'];?></td>
  </tr>
  <tr>
    <td>Type of Business</td>
    <td colspan="2"><?php echo $row['business_type'];?></td>
  </tr>
  <tr>
    <td>Employment Position</td>
    <td colspan="2"><?php echo $row['emp_pos'];?></td>
  </tr>
  <tr>
    <td>Suit</td>
    <td colspan="2"><?php echo $row['suit'];?></td>
  </tr>
  <tr>
    <td>Street Address</td>
    <td colspan="2"><?php echo $row['adress1'].", ".$row['address2'];?></td>
  </tr>
  <tr>
    <td>City</td>
    <td colspan="2"><?php echo $row['city'];?></td>
  </tr>
  <tr>
    <td>State</td>
    <td colspan="2"><?php echo $row['province']."(".$row['state_abbr'].")";?></td>
  </tr>
  <tr>
    <td>Country</td>
    <td colspan="2"><?php echo $row['Country'];?></td>
  </tr>
  <tr>
    <td>Zip</td>
    <td colspan="2"><?php echo $row['zip'];?></td>
  </tr>
  <tr>
    <td>Tax ID</td>
    <td colspan="2"><?php echo $row['tax_id'];?></td>
  </tr>
  <tr>
    <td>URL</td>
    <td colspan="2"><?php echo $row['URL'];?></td>
  </tr>
  <tr>
    <td>Control Panel Uploads</td>
    <td colspan="2"> <a href="chg_upload_per.php?site_id=<?php echo $row['site_id'];?>&P=<?php echo $row['uploads'];?>&pg=M">Currently(
      <?php if($row['uploads']=='Y')echo "On"; else echo "Off";?>)</a></td>
  </tr>
  <tr>
    <td>Page Uploads </td>
    <td colspan="2"> <a href="chg_pupload_per.php?site_id=<?php echo $row['site_id'];?>&P=<?php echo $row['p_uploads'];?>&pg=M">Currently(
      <?php if($row['p_uploads']=='Y')echo "On"; else echo "Off";?>
      )
	  </a></td>
  </tr>
  <?php
  $mqr="Select * from reseller where site_id=".$rid;
  $mrs=mysql_query($mqr);
  $Mrow=mysql_fetch_array($mrs)  
  ?>
  <tr>
    <td>Memory Allocation(Bytes)</td>
    <td colspan="2">
	File Size
	  <input type="text" name="f_size" size="15" value="<?php echo $Mrow['f_size'];?>"/>       
    Memory Allocated
    <input type="text" name="m_size" size="15" value="<?php echo $Mrow['m_size'];?>"/>
     <input type="button" name="Button2" value="Reset" onclick="javascript: window.open('ch_mem_alloc.php?site_id=<?php echo $row['site_id'];?>&Fs='+ document.getElementById('f_size').value + '&Ms=' + document.getElementById('m_size').value);window.focus();" /></td>
  </tr>
  <tr>
    <td>Reseller Report </td>
    <td colspan="2"><input type="button" name="Button" value="Reseller Report" onclick="javascript: window.open('reseller_rep.php?site_id=101')" /></td>
  </tr>
</table>

<?php include_once('king_foot.php');?>